object TestCall {

  def main(args: Array[String]): Unit = {
    val a = 10
    val b = 20
    val k = 5
    val c = addv(a + k, b + k)
    println(c)
  }

  //传值调用
  //call by name
  def addv(x: => Int, y: => Int): Int = {
    x * y
  }
  //  def addv0(x: Int, y: Int): Int = {
  //    x * y
  //  }
}
